package com.pureut.quality.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.quality.domain.QualityBadCategory;
import com.pureut.quality.domain.dto.QualityBadCategoryDto;
import com.pureut.quality.domain.vo.QualityBadCategoryVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description
 * @Param
 * @Date
 * @Author hl
 **/
@Mapper
public interface QualityBadCategoryMapper extends BaseMapper<QualityBadCategory> {

    /**
     * 查询不良类别
     */
    List<QualityBadCategoryDto> selectBadCategoryList(QualityBadCategoryVo qualityBadCategoryVo);

    /**
     * 新增不良类别
     */
    int insertBadCategory(QualityBadCategoryVo qualityBadCategoryVo);

    /**
     * 批量删除不良类别
     */
    int deleteBadCategoryById(String[] badIdS);

    /**
     * 修改不良类别
     */
    int updateBadCategoryEdit(QualityBadCategoryVo qualityBadCategoryVo);
}
